﻿/***************************************************************************
*		功能：     客户回访记录实体类(代码生成工具搞定的)
*		作者：     Hydra
*		日期：     2011-08-11 05:47
*		
*		修改日期：
*		修改人：
*		修改内容：
/* *************************************************************************/
using System;
using System.Xml.Serialization;
using System.Runtime.Serialization;
using System.IO;
using System.Text;
using System.Data;
using Deeper.DataAccess;
using Deeper.Common;
using Deeper.Common.Web;
using System.Collections.Generic;
namespace ZhongTian.Model
{
	/// <summary>
	/// 客户回访记录
	/// </summary>
	[Serializable]
	[HTable(TableName = "T_VisitRecode", EntityName = "VisitRecode")]
	public partial class VisitRecode :  IModel
	{
        /// <summary>
        /// 是否新参数
        /// </summary>
        public bool IsNewModel() { return VisitRecodeId == 0; }

	    #region 所有的字段
	 
	    
		/// <summary>
		/// VisitRecodeId
		/// </summary>
		[HColumn("VisitRecodeId", Remake = "VisitRecodeId", DataType = "numeric" , IsPrimary = true , IsIdentity = true , IsUniqueness = true)]
		public int VisitRecodeId { set; get; }
        

		/// <summary>
		/// 客户id
		/// </summary>
		[HColumn("CustomerId", Remake = "客户id", DataType = "int")]
		public int CustomerId { set; get; }
        

		/// <summary>
		/// 回访时间
		/// </summary>
		[HColumn("Time", Remake = "回访时间", DataType = "datetime")]
		public DateTime Time { set; get; }
        

		/// <summary>
		/// 回访内容
		/// </summary>
		[HColumn("Content", Remake = "回访内容", DataType = "text")]
		public string Content { set; get; }
        

		/// <summary>
		/// 回访员工
		/// </summary>
		[HColumn("Vistier", Remake = "回访员工", DataType = "nvarchar" , Length =40)]
		public string Vistier { set; get; }
        

		/// <summary>
		/// 备注
		/// </summary>
		[HColumn("Memo", Remake = "备注", DataType = "text" , IsNullable = true)]
		public string Memo { set; get; }
        



        public class F
        {
    		 
			 /// <summary>
			 /// VisitRecodeId
			 /// </summary>
			 public static Field VisitRecodeId = new Field("T_VisitRecode","VisitRecodeId");
	    	 

			 /// <summary>
			 /// 客户id
			 /// </summary>
			 public static Field CustomerId = new Field("T_VisitRecode","CustomerId");
	    	 

			 /// <summary>
			 /// 回访时间
			 /// </summary>
			 public static Field Time = new Field("T_VisitRecode","Time");
	    	 

			 /// <summary>
			 /// 回访内容
			 /// </summary>
			 public static Field Content = new Field("T_VisitRecode","Content");
	    	 

			 /// <summary>
			 /// 回访员工
			 /// </summary>
			 public static Field Vistier = new Field("T_VisitRecode","Vistier");
	    	 

			 /// <summary>
			 /// 备注
			 /// </summary>
			 public static Field Memo = new Field("T_VisitRecode","Memo");
	    	 

        }
        #endregion
		  
	 
	}
    
}